import request from '@/mock/mockRequest'
import type { getTeamListType } from '@/types/TeamListType'
// 获取组题列表数据
export const getDefaultTeamListAPI = (data?: getTeamListType) =>
  request({
    method: 'get',
    url: '/questions/randoms/',
    data
  })
// 删除组题列表数据
export const deleteDefaultTeamItemAPI = (data?: any) =>
  request({
    method: 'delete',
    url: '/questions/randoms/id',
    data
  })
// 传递编号获取试题详情
export const getTopicDetailsItemAPI = (data: { id: string }) =>
  request({
    method: 'get',
    url: '/questions/search/id',
    data
  })
